package com.go.where.family.service.impl;

import java.util.Date;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.go.where.family.dao.SpecialColumnDao;
import com.go.where.family.pojo.SpecialColumnInfo;
import com.go.where.family.service.SpecialColumnService;

@Service("specialColumnService")
public class SpecialColumnServiceImpl implements SpecialColumnService {

	@Resource(name = "specialColumnDao")
	private SpecialColumnDao specialColumnDao;

	@Override
	public List<SpecialColumnInfo> queryList(Map<String, Object> map) {
		return specialColumnDao.queryT(map);
	}

	@Override
	public SpecialColumnInfo queryColumnDetail(String colId) {
		SpecialColumnInfo col = new SpecialColumnInfo();
		col.setScolumnId(colId);
		return specialColumnDao.queryByPrimaryKey(col);
	}

	@Override
	public int update(SpecialColumnInfo col) {
		col.setUpdateTime(new Date());
		return specialColumnDao.update(col);
	}

}
